package zblibrary.facechat.http;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import zblibrary.facechat.bean.BaseObjectBean;
import zblibrary.facechat.bean.Positioninfo;

public interface APIService {

    /**
     * 登陆
     *
     * @param username 账号
     * @param password 密码
     * @return
     */
    @FormUrlEncoded
    @POST("user/login")
    Observable<BaseObjectBean<Positioninfo>> login(@Field("username") String username,
                                                   @Field("password") String password);
    @GET("boss/position/getpositioninfo")
    Observable<Positioninfo>getPositioninfo ();
}
